package com.doraemon.utils;

import java.util.Random;

/**
 * @author doraemon
 * @date 2017/10/16.
 */
public class KeyUtils {
    /**
     * 获取唯一的随机值
     * @return 当前时间+随机数
     */
    public static synchronized String getUniqueKey() {
        Random random = new Random();
        Integer number = random.nextInt(900000) + 100000;
        return System.currentTimeMillis()+String.valueOf(number);
    }

}
